<?php 
global $header;
global $footer;
global $control;

global $oldPassword;
global $password;
global $password1;
global $message;
global $error;

global $featureManager;
$header['title'] = 'Change your password';
$header['head'] = '';
$header['intro'] = '<strong>QuickMerger</strong> is the way you make a dictionary oriented with source glossaries. First prepare your source glossaries, and you may then quickly and easily make your own dictionary with one click. After that, your dictionary is still editable &mdash; add/modify/remove a term or a definition in it, or even sort them. <a href="#">See more</a>. ';
$featureManager->apply("com.yizin.platform.site.header", $header);
$featureManager->apply("com.yizin.platform.site.footer", $footer);
$control['current'] = 'change_password';
$featureManager->apply("com.yizin.platform.site.control", $control);

?>
<?= $header['html']?>
<div class="container-L">
	<?=$control['html']?>
</div>
<div class="container-R">
	<?=Utils::showMessage($message)?>
	<form method="post" action="<?=REQUEST_BASE?>account/password/">
		<h3>Change your password</h3>
		<table class="form">
			<col width="160" />
			<col />
			<tr>
				<th><label for="oldPassword">Old password</label></th>
				<td><input type="password" name="oldPassword" id="oldPassword" value="<?=$oldPassword?>" class="text" /><?=Utils::showFormError($error['oldPassword'])?></td>
			</tr>
			<tr>
				<th><label for="password">New password</label></th>
				<td><input type="password" name="password" id="password" value="<?=$password?>" class="text" /><?=Utils::showFormError($error['password'])?></td>
			</tr>
			<tr>
				<th><label for="password1">Retype new password</label></th>
				<td><input type="password" name="password1" id="password1" value="<?=$password1?>" class="text" /><?=Utils::showFormError($error['password1'])?></td>
			</tr>
			<tr>
				<th></th>
				<td><input type="submit" value="Update" class="button" /></td>
			</tr>
		</table>
	</form>
</div>
<?= $footer['html']?>
